
var $table = $('#table');
$table.bootstrapTable({
    url: "student/findAll",
    dataType: "json",
    pagination: true,
    pageSize:1,//分页
    singleSelect: false,
    //表格汉化
    search: false, //显示搜索框
    sidePagination: "server", //服务端处理分页
    columns: [
    {
        title: '名称',
        field: 'name',
        align: 'center',
        valign: 'middle'
    },
    {
        title: '状态',
        field: 'age',
        align: 'center',
        valign: 'middle',
    },
    {
        title: '参与人数',
        field: 'birthday',
        align: 'center'
    },
    {
        title: '总人数',
        field: 'phone',
        align: 'center'
    },
    {
        title: '开始时间',
        field: 'gradeId',
        align: 'center',
    },
    {
        title: '操作',
        field: 'id',
        align: 'center',
        formatter:function(value,row,index){
            var e = '<a href="#" mce_href="#" onclick="edit(\''+ row.id + '\')">编辑</a> ';
            var d = '<a href="#" mce_href="#" onclick="del(\''+ row.id +'\')">删除</a> ';
            return e+d;
        }
    }
]
});